<?php
namespace App\Controllers\admin;

/**
 * 学生管理
 */
class Student extends AdminController
{
    public function index($p='')
    {
        var_dump(password_hash('123456', PASSWORD_DEFAULT));
        $config=Config('Custom');
        var_dump($config,$config->var1,$_ENV['CI_ENVIRONMENT'],getenv('CI_ENVIRONMENT'),$_SERVER['CI_ENVIRONMENT']);
        echo env('CI_ENVIRONMENT').PHP_EOL;
        var_dump(app_timezone(), SECOND);
        // $this->cachePage($time); //$time为缓存页面的时间
        if (! $this->validate('userRules')){}
        $str='400-4564-564';
        var_dump('----',preg_match('/^1[3|4|5|7|8][0-9]{9}$/', $str));
        $pattern = "/^\d{2,5}-\d{7,8}(-\d{1,})?$/";
        $pattern2 = "/^400(-\d{3,4}){2}$/";
        if (! preg_match($pattern, $str) && ! preg_match($pattern2, $str)) {
            var_dump('不通过');
        }else{
        var_dump('通过');}
        helper('funcs');
        var_dump(id_card_verify('35052119880603701X'));
    }
}